package com.vincent.springbucks.repository;

import com.vincent.springbucks.entity.CoffeeOrder;

import java.util.List;

/**
 * @author vincent
 * @date 2019/5/12
 * @description
 */
public interface CofferOrderRepository extends BaseRepository<CoffeeOrder, Long> {
    /**
     * 通过顾客名称获取姓名
     * @param customer
     * @return
     */
    List<CoffeeOrder> findByCustomerOrderById(String customer);

    /**
     * 通过咖啡名称获取订单
     * @param name
     * @return
     */
    List<CoffeeOrder> findByItems_Name(String name);
}
